﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HA.ModFlow.Infrastructure;

namespace HA.ModFlow.Application
{
   public  class DSCellCenterDataViewModel:MDTVIViewModel
    {

       public DSCellCenterDataViewModel(MDTVIViewModel parent,CellCenterDataSet3d ds)
           :base(parent,false)
       
       {


           this._dataset = ds;

           this._imageSource = VMImageSource.dataset;

           this._isShowCheck = false;
           

 
       }


     


       CellCenterDataSet3d _dataset;

       public CellCenterDataSet3d Dataset
       {
           get { return _dataset; }
           set { _dataset = value;


                   if (this.IsSelected)
                   {
                       ProjectService.DefaultService.Project.CurrentDSData = this._dataset;

               
                   }


           
           }
       }


       public override string Desc
       {
           get
           {

               return HAUtil.LanguageTranslater.ENToCN(this._dataset.Label)

                   ;
           }
       }

       protected override void OnSelectedChanged()
       {
           if (this.IsSelected)
           {

               ProjectService.DefaultService.Project.CurrentDSData = this._dataset;
               UIModule.DefaultModule.RibbonV2ViewModel.ViewOpViewModel.ToolVM.CurrentTool = APPTOOLMODE.GRID3D;
           }
       }

    }
}
